package com.zxc.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.util.List;

/**
 * 用户权限关联表user_qx(UserQx)实体类
 *
 * @author makejava
 * @since 2021-02-22 10:52:23
 */
@Data
@Builder
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "商品表", description = "商品表")
@TableName("sp")
public class Sp implements Serializable {
//    private static final long serialVersionUID = -27612648166374697L;

    @Tolerate
    public Sp(){};

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = " 主键", example = "")
    private Integer id;
    @ApiModelProperty(name = "huoJiaId", value = " 货架Id", example = "")
    private Integer huoJiaId;
    @ApiModelProperty(name = "name", value = " 商品名称", example = "")
    private String name;

    @ApiModelProperty(name = "img", value = " 商品图片", example = "")
    private String img;

    @ApiModelProperty(name = "pice", value = " 价格区间", example = "")
    private String pice;

    @TableField("can_buy")
    @ApiModelProperty(name = "canBuy", value = " 是否上架 0：上架，1：下架 ", example = "")
    private Integer canBuy;
    @ApiModelProperty(name = "isDelete", value = " 是否删除0:默认 1：删除", example = "")
    private Integer isDelete;
    /**
     * 推荐 0:默认 1推荐
     */
    @TableField("recommended")
    private Integer recommended;

    @ApiModelProperty(name = "guiGeList", value = " 规格列表", example = "")
    @TableField(exist = false)
    private List<GuiGe> guiGeList;
}
